#include <algorithm>
#include <array>
#include <iostream>

int main(int argc, char const* argv[]) {
  const int SIZE = 10;
  int arr[SIZE] = {0, 1, 2, 3, 4, 5, 7};
  std::array<int, SIZE> arr1;
  std::copy(std::begin(arr), std::end(arr), arr1.begin());
  try {
    std::cout << arr1.at(11) << "\n";
  } catch (std::exception e) {
    std::cout << e.what() << "\n";
  }
  return 0;
}
